﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LinQBases
{
    class Student
    {
        private string firstname;
        private string lastName;
        private int fn;
        private string tel;
        private string email;
        private List<int> marks;
        private int groupNumber;

        public Student(string firstname, string lastName, int fn, string tel, string email, List<int> marks, int groupNumber)
        {
            this.firstname = firstname;
            this.lastName = lastName;
            this.fn = fn;
            this.tel = tel;
            this.email = email;
            this.marks = marks;
            this.groupNumber = groupNumber;
        }

        public string Firstname
        {
            get
            {
                return firstname;
            }
            set
            {
                firstname = value;
            }
        }

        public string LastName
        {
            get
            {
                return lastName;
            }
            set
            {
                lastName = value;
            }
        }

        public int Fn
        {
            get
            {
                return fn;
            }
            set
            {
                fn = value;
            }
        }

        public string Tel
        {
            get
            {
                return tel;
            }
            set
            {
                tel = value;
            }
        }

        public string Email
        {
            get
            {
                return email;
            }
            set
            {
                email = value;
            }
        }

        public List<int> Marks
        {
            get
            {
                return marks;
            }
            set
            {
                marks = value;
            }
        }

        public int GroupNumber
        {
            get
            {
                return groupNumber;
            }
            set
            {
                groupNumber = value;
            }
        }

        public string AllMarks
        {
            get
            {
                StringBuilder markss = new StringBuilder();
                foreach (var mark in Marks)
                {
                    markss.Append(mark + " ");
                }
                return markss.ToString();
            }
        }
    }
}
